const express = require('express');
const path = require('path');
// 配置静态文件服务中间件
// server地址
const app = express();
const port = 4000;

app.use(express.static(__dirname));

app.get('/api', function(req, res){
  // res.status(404).send("Sorry can't find that!");
  // res.status(240).send("Sorry can't find that!");
  res.status(200).send("Sorry can't find that!");
  // res.send('Hello api!')
});

app.listen(port, function () {
  console.info(`server started in http://localhost:${port}`);
});
